AC_INIT([blazon], [devel])

AC_PREREQ(2.69)

AC_CONFIG_SRCDIR([blazon.c])

AC_PROG_CC_C99
if test x"$ac_cv_prog_cc_c99" = "xno"; then
	AC_MSG_ERROR([Blazon requires a C99 capable compiler])
fi

AC_CHECK_HEADERS([sys/types.h sys/resource.h sys/param.h sys/stat.h sys/socket.h netinet/in.h arpa/inet.h errno.h stddef.h ])

AC_CHECK_HEADER(stdarg.h, , [AC_MSG_ERROR([** required header stdarg.h could not be found **])])
AC_CHECK_FUNCS([snprintf], , [AC_MSG_ERROR([** required function snprintf could not be found **])])

PKG_CHECK_MODULES([libevent], [libevent >= 2.0])

AC_OUTPUT
